﻿@using www.Controllers
@model List<www.Core.Contract.DataContract.RelaxVideoDataContract>

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (Model != null)
{
    foreach (var item in Model)
    {
        <div class="frame">
            <div class="video-head">
                <div class="head-left">
                    <h3><b>@item.Name</b></h3>
                </div>
                <div class="head-right">
                    <div class="fb-like" data-href="http://relax2s.com/Home/Video/@Session["Culture"]/@item.Id/@item.Tag" data-width="200" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
                    <a href="https://twitter.com/share?count=data-count" class="twitter-share-button" data-url="http://relax2s.com/Home/Video/@Session["Culture"]/@item.Id/@item.Tag" data-text="Dragon infomation" data-via="Dragon_hy"></a>
                    <script type="IN/FollowCompany" data-id="http://relax2s.com" data-counter="right"></script>
                    <script type="IN/Share" data-url="http://relax2s.com" data-counter="right"></script>
                    <div class="g-plusone" data-annotation="inline" data-width="60"></div>


                </div>
            </div>
            <div class="video-content">
                <object>
                    <param name="movie" value="@string.Format("http://www.youtube.com/v/{0}&hl=en&fs=1&", item.Code)"></param>
                    <param name="allowFullScreen" value="true"></param>
                    <param name="allowscriptaccess" value="always"></param>
                    <embed src="@string.Format("http://www.youtube.com/v/{0}&hl=en&fs=1&", item.Code)" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" ></embed>

                </object>
            </div>
        </div>
        <div class="clear"></div>
    }
}
else
{
    @Utility.GetResource.GetResouceMessage(Session["Culture"], "lblEmpty")
}